<form action="index.php?app=ome&ctl=admin_return&act=add_return&finder_id=<{$env.get.finder_id}>" id="form1" method="post">
<script>
$('order_bn').focus();
function requestReturn(order_id, order_bn){
    $('form1').getParent('.dialog').retrieve('instance').close();
    url = 'index.php?ctl=admin_return&act=apply&app=ome&p[0]='+order_id+'&return_from=returned&finder_id=<{$env.get.finder_id}>';
    new Dialog(url,{width:700, height:450, title:'订单'+order_bn+'的售后申请'});
}
</script>
<input type="hidden" name="doSubmit" value="do" />
<div class="tableform">
<div class="division">
<table>
    <tr>
        <td>请输入已发货的订单号： &nbsp;&nbsp;&nbsp;
        <input type="text" id="order_bn" name="order_bn" vtype="required" value="<{$keywords}>" />
        <input type="hidden" name="exactitude" value="true" <{if !$exactitude=='true' or $exactitude==''}>checked="checked"<{/if}> />
        <{button  type="submit" label="查询"}></td>
    </tr>
</table>
</div>
</div>
<{if $search_flag}>
<div class="division">
    <{if $orders}>
        
                     查询到以下订单，未发货,部分发货或全部退货的订单无法申请售后。
        <div class="division">
        <table>
        <tr>
	        <{foreach from=$orders item=items name=order }>
	            <{if $env.foreach.order.iteration mod 3}>
				<td>
				<{else}>
				</tr><tr><td>
				<{/if}>
				
		        <{if $items.order_bn==$keywords}>
		        <font color="orange"><b><{$items.order_bn}></b></font>
		        <{else}>
		        <b><{$items.order_bn}></b>
		        <{/if}>
		        
		         <{if $items.ship_status != '0' && $items.ship_status != '4' && $items.ship_status != '2'}>
		        <{button class="btn-primary" type="button" label="申请" onclick="requestReturn('{$items.order_id}','{$items.order_bn}');" }>
	            <{else}>
	            <font color="gray">(<{if $items.ship_status == '0'}>未发货<{/if}><{if $items.ship_status == '4'}>全部退货<{/if}><{if $items.ship_status == '2'}>部分发货<{/if}>)</font>
	            <{/if}>
	            
	            </td>
	        <{/foreach}>
	    </tr>
        </table>
        </div>
        
    <{else}>
    没有查询到  "<font color="orange"><b><{$keywords}></b></font>" 订单信息。
    <{/if}>
</div>
<{/if}>


</form>
